/*
 * Selling Partner API for Product Type Definitions
 * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds).  For more information, see the [Product Type Definitions API Use Case Guide](doc:product-type-api-use-case-guide).
 *
 * OpenAPI spec version: 2020-09-01
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.amazon.spapi.model.definitions;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import com.google.gson.annotations.SerializedName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * A property group represents a logical grouping of schema properties that can be used for display or informational purposes.
 */
@ApiModel(description = "A property group represents a logical grouping of schema properties that can be used for display or informational purposes.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-01-30T15:30:56.681+08:00")
public class PropertyGroup {
  @SerializedName("title")
  private String title = null;

  @SerializedName("description")
  private String description = null;

  @SerializedName("propertyNames")
  private List<String> propertyNames = null;

  public PropertyGroup title(String title) {
    this.title = title;
    return this;
  }

   /**
   * The display label of the property group.
   * @return title
  **/
  @ApiModelProperty(value = "The display label of the property group.")
  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public PropertyGroup description(String description) {
    this.description = description;
    return this;
  }

   /**
   * The description of the property group.
   * @return description
  **/
  @ApiModelProperty(value = "The description of the property group.")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public PropertyGroup propertyNames(List<String> propertyNames) {
    this.propertyNames = propertyNames;
    return this;
  }

  public PropertyGroup addPropertyNamesItem(String propertyNamesItem) {
    if (this.propertyNames == null) {
      this.propertyNames = new ArrayList<String>();
    }
    this.propertyNames.add(propertyNamesItem);
    return this;
  }

   /**
   * The names of the schema properties for the property group.
   * @return propertyNames
  **/
  @ApiModelProperty(value = "The names of the schema properties for the property group.")
  public List<String> getPropertyNames() {
    return propertyNames;
  }

  public void setPropertyNames(List<String> propertyNames) {
    this.propertyNames = propertyNames;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PropertyGroup propertyGroup = (PropertyGroup) o;
    return Objects.equals(this.title, propertyGroup.title) &&
        Objects.equals(this.description, propertyGroup.description) &&
        Objects.equals(this.propertyNames, propertyGroup.propertyNames);
  }

  @Override
  public int hashCode() {
    return Objects.hash(title, description, propertyNames);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PropertyGroup {\n");
    
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    propertyNames: ").append(toIndentedString(propertyNames)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

